package edu.zju.udms.dnavigator.entities.mysql;

import edu.zju.udms.dnavigator.core.entity.AttributeType;
import edu.zju.udms.dnavigator.core.entity.AttributeTypeEnum;
import edu.zju.udms.dnavigator.core.entity.Entity;
import edu.zju.udms.dnavigator.core.entity.GeneralType;

public class MySQLColumn extends Entity{
	/**
	 * 
	 */
	private static final long serialVersionUID = 8556657998484930809L;

	@AttributeType(AttributeTypeEnum.Normal)
	public String tableId;
	
	@AttributeType(AttributeTypeEnum.Normal)
	public String tableName;
	
	@AttributeType(AttributeTypeEnum.Key)
	public String dataType;
	public MySQLColumn(){}
	
	public MySQLColumn(String databaseName,String tableName,String name,String tableId,String dataType){
		super(name, databaseName+":"+tableName+":"+name, GeneralType.Column, "MySQL", 0, 0, null,name, null);
		this.dataType=dataType;
		this.tableId=tableId;
	}

	public String getTableId() {
		return tableId;
	}

	public void setTableId(String tableId) {
		this.tableId = tableId;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}
	
}
